package cn.cvs.service;

import cn.cvs.pojo.SysUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface SysUserService {
    //依据account和password查询用户
    SysUser queryUser(String account,String password);

    //条件分页查询
    List<SysUser> queryUsers(String realName,Integer roleId,Integer pageNo,Integer pageSize);

    int queryCount(String realName,Integer roleId);

    int addUser(SysUser sysUser);

    SysUser queryById(Integer id);

    int updateUser(SysUser sysUser);

    //依据account查询用户数量
    int queryUserCount(String account);

    int deleteUser(Integer id, HttpServletRequest request);
}
